<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>渐变</title>
    <style>
        .box {
            width: 800px;
            height: 800px;
            margin: 0 auto;
            outline: 1px solid red;

        }

        .linear {
            background-image: linear-gradient(to right, red, blue, yellow, orange);
        }

        .radial {
            width: 400px;
            background-image: radial-gradient(circle closest-corner at 100px 100px, red, green, yellow);
        }

        .web {
            background-color: #52ACFF;
            background-image: linear-gradient(180deg, #52ACFF 12%, #FFE32C 50%, #ffffff 100%);

        }
    </style>
</head>

<body>
    <div class="box linear"></div>
    <div class="box radial"></div>
    <div class="box web"></div>
</body>

</html>